import request from '@/utils/request'

export function add (parameter) {
  return request({
    url: '/pc/paiAgent/user/add',
    method: 'post',
    data: parameter
  })
}
export function listByPage (parameter) {
  return request({
    url: '/pc/paiAgent/user/listByPage',
    method: 'post',
    data: parameter
  })
}

export function update (parameter) {
  return request({
    url: '/pc/paiAgent/user/update',
    method: 'put',
    data: parameter
  })
}

export function active (data) {
  return request({
    url: '/pc/paiAgent/user/active',
    method: 'post',
    data
  })
}

export function frozen (data) {
  return request({
    url: '/pc/paiAgent/user/frozen',
    method: 'post',
    data
  })
}